package main

import "fmt"

func main() {
	persons := make([]string, 2, 5)
	for idx, val := range persons {
		fmt.Printf("idx=%d, val=%s\n", idx, val)
	}
	persons = append(persons, "张三")
	persons = append(persons, "张三")
	persons = append(persons, "张三")
	persons = append(persons, "张三")
	persons = append(persons, "张三")
	fmt.Println("=========================")
	for idx, val := range persons {
		fmt.Printf("idx=%d, val=%s\n", idx, val)
	}
}
